package Test.JStruts2Test.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import Test.JStruts2Test.dao.TestDao;

import com.core.framework.freemarker.annotation.FtlField;
import com.util.AppUtils;

@Service("testService")
public class TestService {
	@FtlField
	public static String TestX = "..........@FtlField.......";
	public static String abc="&&&&&&&&&&&";
	@Autowired
	TestDao testDao;
	public List<Map<String,Object>> test()
	{
		return testDao.test();
	}
	public List<Map<String,Object>> test(String abc)
	{
		String _c=abc;
		System.out.println(_c);
		return testDao.test();
	}
	public static void main(String[] args )
	{
		TestService test = AppUtils.getBean(TestService.class);
//		jdbcTemplate.setDataSource((DataSource) AppUtils.getBean("dataSource"));
//		String sql = "select * from SYS_TD_OperLog " ;
//		System.out.println(jdbcTemplate.queryForList(sql));
//		JdbcTemplate jdbcTemplate = (JdbcTemplate) AppUtils.autowiredBean(JdbcTemplate.class);
//		String sql = "select * from SYS_TD_OperLog " ;
//		System.out.println(jdbcTemplate.queryForList(sql));
		System.out.println(test.test());
	}
}
